
import { message } from 'ant-design-vue'

// eslint-disable-next-line no-unused-vars
window.addEventListener('offline', function ($event) {
    message.error({ content: "请检查网络", duration: 2 })
})
// eslint-disable-next-line no-unused-vars
window.addEventListener('online', function ($event) {
    message.success({ content: "网络已连接", duration: 2 })
})